#include "realsubject.h"
#include <iostream>
#include <chrono>
#include <thread>
RealSubject::RealSubject(){

}

RealSubject::~RealSubject(){

}
std::string RealSubject::request(const std::string& data) {
    std::cout << "RealSubject Handling request " << data << std::endl;
    //模拟耗时操作
    std::this_thread::sleep_for(std::chrono::seconds(2));
    return "RealSubject: Processed data: " + data;
}

